home *** CD-ROM | disk | FTP | other *** search
/ BBS Toolkit / BBS Toolkit.iso / ezy_comm / ezy1023.zip / SETUP.ZIP / FDMAILER.BAT < prev    next >
DOS Batch File  |  1992-09-03  |  3KB  |  181 lines

  1. @echo off
  2. rem    Ezycom FD Mailer Batch File V1.0
  3. rem    Command Format :
  4. rem    FDMAILER        (for node 1 operation)
  5. rem    FDMAILER [node] (for node XX operation)
  6. rem    [node] is the node number from 1 through to 250
  7. rem    eg  BBS 2
  8. set FD=C:\FD
  9. rem NOTE : no trailing backslash
  10. if %1! == !     SET TASK=1
  11. if not %1! == ! SET TASK=%1
  12. :start
  13. cd %FD%
  14. fd
  15. if errorlevel 210 goto 38400baud
  16. if errorlevel 209 goto 19200baud
  17. if errorlevel 208 goto 14400baud
  18. if errorlevel 207 goto 12000baud
  19. if errorlevel 206 goto 9600baud
  20. if errorlevel 205 goto 7200baud
  21. if errorlevel 204 goto 4800baud
  22. if errorlevel 203 goto 2400baud
  23. if errorlevel 202 goto 1275baud
  24. if errorlevel 201 goto 1200baud
  25. if errorlevel 200 goto 300baud
  26. if errorlevel 191 goto scanecho
  27. if errorlevel 190 goto unpackmail
  28. if errorlevel  51 goto localbbs
  29. if errorlevel  50 goto cleanup
  30. if errorlevel  10 goto end
  31. if errorlevel   6 goto fossil
  32. if errorlevel   5 goto modeminit
  33. if errorlevel   4 goto modemresp
  34. if errorlevel   3 goto fulldisk
  35. if errorlevel   2 goto external
  36. if errorlevel   1 goto internal
  37. goto start
  38.  
  39. :38400baud
  40. cd %EZY%
  41. ezy -b38400 -E20
  42. goto after_ezy
  43.  
  44. :19200baud
  45. cd %EZY%
  46. ezy -b19200 -E20
  47. goto after_ezy
  48.  
  49. :14400baud
  50. cd %EZY%
  51. ezy -b14400 -E20
  52. goto after_ezy
  53.  
  54. :12000baud
  55. cd %EZY%
  56. ezy -b12000 -E20
  57. goto after_ezy
  58.  
  59. :9600baud
  60. cd %EZY%
  61. ezy -b9600 -E20
  62. goto after_ezy
  63.  
  64. :7200baud
  65. cd %EZY%
  66. ezy -b7200 -E20
  67. goto after_ezy
  68.  
  69. :4800baud
  70. cd %EZY%
  71. ezy -b4800 -E20
  72. goto after_ezy
  73.  
  74. :2400baud
  75. cd %EZY%
  76. ezy -b2400 -E20
  77. goto after_ezy
  78.  
  79. :1275baud
  80. cd %EZY%
  81. ezy -b1275 -E20
  82. goto after_ezy
  83.  
  84. :1200baud
  85. cd %EZY%
  86. ezy -b1200 -E20
  87. goto after_ezy
  88.  
  89. :300baud
  90. cd %EZY%
  91. ezy -b300 -E20
  92. goto after_ezy
  93.  
  94. :localbbs
  95. cd %EZY%
  96. ezy -L -E20
  97.  
  98. :after_ezy
  99. if errorlevel 20 goto start
  100. if errorlevel 8 goto sysopnext
  101. if errorlevel 7 goto scanecho
  102. if errorelvel 6 goto scanecho
  103. if errorlevel 5 goto scanecho
  104. if errorlevel 4 goto modeminit
  105. if errorlevel 3 goto fossil
  106. if errorlevel 2 goto runtimeerror
  107. if errorlevel 1 goto setuperror
  108. goto start
  109.  
  110. :unpackmail
  111. cd %EZY%
  112. ezymail -toss -verbose
  113. ezynet  -import -echoarea
  114. goto start
  115.  
  116. :scanecho
  117. cd %EZY%
  118. ezymail -scan -verbose
  119. ezynet  -export
  120. goto start
  121.  
  122. :cleanup
  123. cd %EZY%
  124. ezyff -c
  125. ezymaint -i -p -c
  126. ezyff -i
  127. usercomp -b20 -p -d90 -s1 -a
  128. msgcomp -LINK
  129. goto start
  130.  
  131. :sysopnext
  132. echo Yo!!!! Your LOGON NOW!!!
  133. pause
  134. goto start
  135.  
  136. :weekly
  137. cd %EZY%
  138. ezyff -c
  139. ezymaint -d
  140. goto start
  141.  
  142. :setuperror
  143. echo Setup Error!
  144. goto end
  145.  
  146. :runtimeerror
  147. echo Runtime Error! Consult Errors.Log
  148. goto start
  149.  
  150. :modeminit
  151. echo Modem Init Error!
  152. goto End
  153.  
  154. :fossil
  155. Echo Wrong Fossil Version!
  156. goto end
  157.  
  158. :modeminit
  159. Echo EZY Unable To Initialize Modem!
  160. goto start
  161.  
  162. :modemresp
  163. Echo FD Modem NOT Responding!
  164. goto end
  165.  
  166. :fulldisk
  167. Echo Insufficent Disk Space TO Proceed!
  168. goto end
  169.  
  170. :external
  171. Echo External FD Error - System File Missing!
  172. goto end
  173.  
  174. :internal
  175. Echo Internal FD Error!
  176. goto end
  177.  
  178. :end
  179. Echo Ezycom Is Down!
  180. cd %EZY%
  181.